package com.eliteams.quick4j.web.interceptors.client;

import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;

public class Test1 {

	public static void main(String[] args) {
		JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
		String wsUrl = "http://sync.yd-jxt.com/Sync2/DingWebService.asmx?WSDL";
		String method = "TVisitSign";
//		String method = "TVisitSign_info";
		
		Client client = dcf.createClient(wsUrl);
		Object[] res = null;
		try {
			res = client.invoke(method, "1111","111");
			System.out.println(res[0].toString());
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
}
